<template>
  <div id="toolbar">
    <el-row>
      <el-col :span="3" v-for="(tool, index) in toolbarConfig" :key="index">
        <el-button :type="tool.type" plain>{{ tool.name }}</el-button>
      </el-col>
    </el-row>
  </div>
</template>

<script setup lang="tsx">
import { PropType } from 'vue'

const props = defineProps({
  toolbarConfig: {
    type: Object as PropType<any>,
    default: () => null
  }
})
</script>

<style scoped>
#toolbar {
  line-height: 50px;
  width: 100%;
  background: #343535;
}
/deep/ .el-row {
  width: 95%;
  margin: 0 auto;
}
</style>
